
import 'package:flutter/cupertino.dart';
import 'package:flutterdemo/smartform/utils/log.dart';
import 'package:flutterdemo/base/liftcycle/liftcycle.dart';

abstract class BasePageState<T extends StatefulWidget> extends AbsLiftCycleBaseState<T>{

  @override
  Widget onBuildWidget(BuildContext context) {
    Log.logWsq("$runType onBuildWidget");
    return onBuild(context);
  }

  Widget onBuild(BuildContext context);

  @override
  void onCreate() {
    runType = runtimeType.toString();
    Log.logWsq("$runType onCreate");
  }

  @override
  void onDestroy() {
    Log.logWsq("$runType onDestroy");
  }

  @override
  void onPause() {
    Log.logWsq("$runType onPause");
  }

  @override
  void onResume() {
    Log.logWsq("$runType onResume");
  }

}